package com.door.erp.sevice.impl;

import java.util.Date;

import com.door.erp.sevice.OrderNoGenerateService;

public class OrderNoGenerateServiceImp implements OrderNoGenerateService{

	private OrderNoGenerateServiceImp() {}

	private static OrderNoGenerateServiceImp __instance;

	public static OrderNoGenerateServiceImp getInstance() {
		if (__instance == null) {
			synchronized (OrderNoGenerateServiceImp.class) {
				if (__instance == null) {
					__instance = new OrderNoGenerateServiceImp();
				}
			}
		}
		return __instance;
	}
	
	public String getOrderNo(){
		synchronized (this) {
				Date date = new Date();
				long timestemp = date.getTime(); 
				return ""+timestemp;
		}
	}
}
